package com.wsoft.dc.sample;

import com.wsoft.core.cmd.DcConfigService;
import com.wsoft.entity.BaseConfigVO;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @Author z001
 * @Date 2024/12/19 09:29
 */
@Service(value = "bmpTodoService")
public class BmpTodoServiceImplDc implements DcConfigService {
    @Override
    public Long count(Map<String, Object> paramMap) {
        return 3L;
    }

    @Override
    public List<? extends BaseConfigVO> list(Map<String, Object> paramMap) {
        BmpVO bmpVO1 = new BmpVO("todo1","todo",1);
        bmpVO1.setTitle("bmpTitle1");
        bmpVO1.setCreateTime(LocalDateTime.now());
        BmpVO bmpVO2 = new BmpVO("todo2","todo",2);
        bmpVO2.setTitle("bmpTitle2");
        bmpVO2.setCreateTime(LocalDateTime.now());
        BmpVO bmpVO3 = new BmpVO("todo3","todo",3);
        bmpVO3.setTitle("bmpTitle3");
        bmpVO3.setCreateTime(LocalDateTime.now());
        return Arrays.asList(bmpVO1,bmpVO2,bmpVO3);
    }
}
